package com.ss.android.article.browser.database.bookmark;

import android.database.Cursor;
import android.support.annotation.NonNull;
import android.text.TextUtils;

import com.a.a.NightMode;
import com.a.a.u;
import java.util.ArrayList;
import java.util.List;

final class g implements NightMode {
    private final a a;

    g(a arg1) {
        this.a = arg1;

    }

    public final void f(@NonNull Object arg11) {
        Cursor v0 = com.ss.android.article.browser.database.bookmark.a.a(this.a).query(true, "bookmark", new String[]{"folder"}, null, null, null, null, null, null);
        ArrayList v1 = new ArrayList();
        while(v0.moveToNext()) {
            String v2 = v0.getString(v0.getColumnIndex("folder"));
            if(TextUtils.isEmpty(((CharSequence)v2))) {
                continue;
            }

            ((List)v1).add(v2);
        }

        v0.close();
        ((u)arg11).onItem(v1);
        ((u)arg11).onComplete();
    }
}

